import http from '@/utils/request'
const URL = '/breed/base-stock';

export function getAllInfoByPage(pageNum,  pageSize, data) {
  return http({
      url:`${URL}/getStockByBaseIdAndType?pageNum=${pageNum}&pageSize=${pageSize}&baseId=${data.baseId}&type=${data.type}`,
      method: 'get',
  })
}
// 展示修改前的内容
export function showEidtRequest(id){
  return http({
      url:`${URL}/getById?id=${id}`,
      method: 'get',
  })
}

// 修改数据
export function EidtRequest(id,data){
  return http({
      url:`${URL}/modifiedStock?id=${id}`,
      method: 'post',
      data: data
  })
}

// 模糊请求的数据查询
export function fuzzySearchReq1(){
  return http({
      url:`${URL}/fuzzyquery`,
      method: 'get',
  })
}


// 模糊查询
export function fuzzySearchReq2(name){
  return http({
      url:`${URL}/fuzzyquery?name=${name}`,
      method: 'get',
  })
}
